<%@page import="cn.qidisoft.edu.hzjt.controller.BaseController"%>
<%@ page language="java" pageEncoding="UTF-8" buffer="16kb"%>
<%@ include file="/base.jsp"%>
<%@ include file="/module/taglibs.jsp"%>
<%@ include file="/module/nocache.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
	<HEAD>
		<title>错误报告</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
	   <%@ include file="/module/js.jsp"%>
		<style> A:link { FONT-SIZE: 9pt; COLOR: #000000; FONT-FAMILY: "宋体"; TEXT-DECORATION: none } A:visited { FONT-SIZE: 9pt; COLOR: #000000; FONT-FAMILY: "宋体"; TEXT-DECORATION: none } A:hover { FONT-SIZE: 9pt; COLOR: red; FONT-FAMILY: "宋体"; TEXT-DECORATION: underline } </style>
		<script type="text/javascript">
			function showCurrent(){
				var params = "dialogHeight: " + window.screen.availHeight + "px; dialogWidth: " + window.screen.availWidth + "px; scroll:auto; status: no;"
				window.showModalDialog("${basePath}/module/error_message.jsp", window ,params);
			}
			function getMessage(){
				var text = $("#msg").html();
				return text;
			}
		</script>
	</HEAD>
	<body>
		<form id="Form1" method="post">
			<table cellpadding="0" width="800" cellspacing="10" border="0" align="center" height="100%">
				<tr>
					<td valign="bottom">
						<table cellpadding="5" cellspacing="0" width="100%">
							<tr>
								<td width="8"><img src="${basePath}/img/pagerror.jpg" border="0"></td>
								<td><font style="FONT-WEIGHT:bold;FONT-SIZE:20px">很抱歉，系统发生严重错误：</font></td>
							</tr>
							<tr>
								<td></td>
								<td><div style="word-break:break-all;FONT-WEIGHT:bold;FONT-SIZE:14px;COLOR:gray"></div>
								</td>
							</tr>
							<tr>
								<td></td>
								<td style="FONT-SIZE:9pt">请将此问题发送给support@qidisoft.cn。<br>
									您好！系统发生错误，我们已经为您创建了错误报告，请您点击“查看错误信息”按钮可以查看错误信息，可以将其发送给我们帮助您解决系统问题质量。</td>
							</tr>
							<tr>
								<td colspan="2">
									<table cellpadding="0" cellspacing="5" align="right">
										<tr>
											<td>
											<input type="button" value="查看错误信息" onclick="javascript:showCurrent();" class="inputButton"/>
											<td>
												<input type="button" value="返回上一页" class="inputButton" onclick="javascript:window.history.back();"/>
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td valign="top">
						<fieldset><legend><font style="FONT-WEIGHT:bold;FONT-SIZE:9pt">解决方案</font></legend>
							<div style="PADDING-RIGHT:10px;PADDING-LEFT:10px;PADDING-BOTTOM:10px;WIDTH:100%;PADDING-TOP:10px">
								<table cellpadding="0" cellspacing="1" border="0" width="100%">
									<tr>
										<td><font style="FONT-SIZE:9pt;FONT-FAMILY:Arial">你可以采取以下措施告知我们关于此错误信息，或者复制上述内容，并且告知系统管理员</font></td>
									</tr>
									<tr>
										<td height="10"></td>
									</tr>
									<tr>
										<td valign="top">
											<table style="FONT-SIZE:9pt" cellpadding="0" cellspacing="1" border="0" width="100%" height="100%">
												<tr>
												<td valign="top"><img src="${basePath}/img/tel.png" border="0"></td>
												<td valign="top"><img src="${basePath}/img/qq.png" border="0"></td> 
													<td rowspan="2" valign="top">
														<table style="FONT-SIZE:9pt" cellspacing="0" cellpadding="0">
															<tr>
																<td width="30"></td>
																<td style="FONT-WEIGHT:bold;COLOR:red;text-align:left;">关注起迪：</td>
															</tr>
															<tr>
																<td height="10"></td>
																<td></td>
															</tr>
															<tr>
																<td></td>
																<td>
																	<div style="PADDING-LEFT:10px">
																		<table>
																			<tr>
																				<td><img alt="关注起迪" src="${basePath}/img/shaoma.png"/><br/><br/><a href="http://www.qidisoft.cn/">上海起迪计算机科技发展有限公司</a></td>
																			</tr>
																		</table>
																	</div>
																</td>
															</tr>
														</table>
													</td>
												</tr>
												<tr>
													<td valign="top">
														<img src="${pageContext.request.contextPath}/img/mail.png" border="0">
													</td>
													<td valign="top">
														<img src="${pageContext.request.contextPath}/img/yzbm.png" border="0">
													</td>
												</tr>
											</table>
										</td>
									</tr>
								</table>
							</div>
						</fieldset>
					</td>
				</tr>
			</table>
				<% 
				     BaseController.removeParameter("msg");
				    response.getWriter().write("<div id=\"msg\" style=\"display:none\" >");
					String text = "";
					if(request.getAttribute("exception")!=null){
						Exception e = (Exception)request.getAttribute("exception");
						e.printStackTrace(response.getWriter());
					}
					response.getWriter().write("</div>");
				%>
		</form>
	</body>
</HTML>
